<template>
	<view>
		<view>{{title}}</view>
		<view @click="clickEs">点击</view>
	</view>
</template>

<script>
export default {
	name:'g-radio',
	data() {
		return {
			title:'没改'
		};
	},
	  model: {
	      prop: 'modelVal',//指向props的参数名
	      event: 'change'//事件名称
	    },
	  props:{
		  modelVal:'',
	  },
	methods: {
		clickEs(){
			this.title = '11'
		}
	},
	watch:{
	      //监听值变化，再赋值给modelVal
	      title(value){
	        this.$emit('change',value);
	      }
	},
	created() {
		
	}
};
</script>
<style></style>
